package com.earnings.okhttputils.utils.ui.activity.common;

import android.view.View;
import android.widget.TextView;

import com.earnings.R;
import com.earnings.okhttputils.utils.god.GodLeftHandBaseActivity;



/**
 * Created by Administrator on 2016/10/24.
 * 跟钱有关的状态
 */


public class StatusPriceActivity extends GodLeftHandBaseActivity implements View.OnClickListener {

    private  TextView status,price,info;
    @Override
    protected int onCreateLayoutId() {
        return R.layout.activity_status_price;
    }

    @Override
    protected void init() {

        price= (TextView) findViewById(R.id.price);
        info= (TextView) findViewById(R.id.info);
        status= (TextView) findViewById(R.id.status);
        findViewById(R.id.sumbit).setOnClickListener(this);

        if(bundleData.containsKey("title"))super.setTitle(bundleData.getString("title"));
        if(bundleData.containsKey("info"))info.setText(bundleData.getString("info"));
        if(bundleData.containsKey("status"))status.setText(bundleData.getString("status"));
        if(bundleData.containsKey("price"))price.setText(bundleData.getString("price")+"元");

    }


    @Override
    public void onClick(View v) {
        int i = v.getId();
        if (i == R.id.sumbit) {
            finish();
        }
    }
}
